package com.topvision.service.impl.sys;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

import com.topvision.mapper.sys.SysDictMapper;
import com.topvision.model.sys.SysDict;
import com.topvision.service.sys.SysDictService;

@Service("sysDictService")
public class SysDictServiceImpl implements SysDictService {
	@Autowired
	private SysDictMapper sysDictMapper;
	
	@Override
	public SysDict queryObject(Long id){
		return sysDictMapper.queryObject(id);
	}
	
	@Override
	public List<SysDict> queryList(Map<String, Object> map){
		return sysDictMapper.queryList(map);
	}
	
	@Override
	public int queryTotal(Map<String, Object> map){
		return sysDictMapper.queryTotal(map);
	}
	
	@Override
	public void save(SysDict sysDict){
		sysDictMapper.save(sysDict);
	}
	
	@Override
	public void update(SysDict sysDict){
		sysDictMapper.update(sysDict);
	}
	
	@Override
	public void delete(Long id){
		sysDictMapper.delete(id);
	}
	
	@Override
	public void deleteBatch(Long[] ids){
		sysDictMapper.deleteBatch(ids);
	}

    @Override
    public SysDict queryObjectByMap(Map<String, Object> map){
        return sysDictMapper.queryObjectByMap(map);
    }

    @Override
    public List<SysDict> queryByParam(Map<String, Object> map){
        return sysDictMapper.queryByParam(map);
    }

    @Override
    public List<SysDict> queryByParamAndPage(Map<String, Object> map){
        return sysDictMapper.queryByParamAndPage(map);
    }


    @Override
    public int queryByParamTotal(Map<String, Object> map){
        return sysDictMapper.queryByParamTotal(map);
    }
}
